<?php

function describeAnidatedArray($array)
{
    $buf = '<ol>';
    foreach($array as $key => $value)
    {
        if(is_array($value))
        {
            $buf .= '<li>'.$key.'<ol>' . describeAnidatedArray($value) . '</ol></li>';
        }
        else
            $buf .= "<li>$key => $value</li>";
    }
    return $buf . '</ol>';
}

function formFixer( Zend_Form $_form ) {
    foreach( $_form->getElements() as $element ) {
        if( $element instanceof Zend_Form_Element_Hidden ) {
            $label = $element->getLabel();
            if( empty( $label ) ) {
                $element->setLabel( '&nbsp;' );
            }
            foreach( $element->getDecorators() as $decorator ) {
                $decorator->setOption( 'class', 'hidden' );
            }
        }
    }
    return $_form;
}


?>